this._createBackground();
- let monitor = Main.layoutManager.primaryMonitor;
- this.setPorthole(monitor.x, monitor.y, monitor.width, monitor.height);
+ let workArea = Main.layoutManager.getWorkAreaForMonitor(this.monitorIndex);
+ this.setPorthole(workArea.x, workArea.y, workArea.width, workArea.height);
let windows = global.get_window_actors().filter(actor => {
let win = actor.meta_window;
},
setPorthole(x, y, width, height) {
- this._portholeX = x;
- this._portholeY = y;
this.actor.set_size(width, height);
this._contents.set_position(-x, -y);
},